<?php
namespace app\common\model;

use think\Model;

class JobProgressModel extends model{

    protected $name = 'boyi_job_progress';
    protected $pk = 'id';



    // 申报课题（维普论文选题的进度跟稿件的进度是分开的，两条线，这里人为合在一起）
    const CLASS_NAME_TYPE_CUSTOME_CLUE = 1000;     
    const CLASS_NAME_TYPE_REPORT = 2;              // 开题报告
    const CLASS_NAME_TYPE_DOC_1 = 12;              // 初稿一
    const CLASS_NAME_TYPE_DOC_2 = 10;              // 初稿二
    const CLASS_NAME_TYPE_DOC_3 = 9;               // 初稿三
    const CLASS_NAME_TYPE_DOC_SURE = 13;           // 定稿
    const CLASS_NAME_TYPE_GUIDE_LOG = 1;           // 指导日志
    const CLASS_NAME_TYPE_SHIXI = 6;               // 专业实习、毕业实习数据提交
    const CLASS_NAME_TYPE_PINGSHEN = 3;            // 学士学位评审
    const CLASS_NAME_TYPE_DOC_LAST = 15;           // 最终稿
    const CLASS_NAME_TYPE_DABIAN = 20;           // 答辩

    const CLUE_STATUS_UNKNOW = 0;   // 未知状态
    const CLUE_STATUS_UNSUBMIT = 1; // 等待提交
    const CLUE_STATUS_UNHANDLE = 2; // 暂无需处理
    const CLUE_STATUS_WAIT_EXAMINE = 5; // 等待审核
    const CLUE_STATUS_EXAMINE_FAIL = 6; // 审核失败
    const CLUE_STATUS_EXAMINE_SUCCESS = 10; // 审核成功



    
    const CLUE_STATUS_ARR = [
        self::CLUE_STATUS_UNKNOW => [
            'info' => '未知状态，请更新数据',
            'label' => '未知状态',
            'button_type' => 'warning'   
        ],
        self::CLUE_STATUS_UNSUBMIT => [
            'info' => '待提交',
            'label' => '待提交',
            'button_type' => 'danger'   
        ],
        self::CLUE_STATUS_UNHANDLE => [
            'info' => '暂无需处理',
            'label' => '无需处理',
            'button_type' => 'info'   
        ],
        self::CLUE_STATUS_WAIT_EXAMINE => [
            'info' => '等待审核，若长时间未审核，请联系导师处理',
            'label' => '等待审核',
            'button_type' => 'primary'   
        ],
        self::CLUE_STATUS_EXAMINE_FAIL => [
            'info' => '审核被驳回',
            'label' => '审核被驳回',
            'button_type' => 'danger'   
        ],
        self::CLUE_STATUS_EXAMINE_SUCCESS => [
            'label' => '审核成功',
            'info' => '审核成功',
            'button_type' => 'success'  
        ],
    ];

    const CLUE_PROGRESS_INFO = [
        self::CLASS_NAME_TYPE_CUSTOME_CLUE => [
            'label' => '申报课题',
            'sign' => '申',
        ],
        self::CLASS_NAME_TYPE_REPORT => [
            'label' => '开题报告',
            'sign' => '开',
        ],
        self::CLASS_NAME_TYPE_DOC_1 => [
            'label' => '初稿一',
            'sign' => '一',
        ],
        self::CLASS_NAME_TYPE_DOC_2 => [
            'label' => '初稿二',
            'sign' => '二',
        ],
        self::CLASS_NAME_TYPE_DOC_3 => [
            'label' => '初稿三',
            'sign' => '三',
        ],
        self::CLASS_NAME_TYPE_DOC_SURE => [
            'label' => '定稿',
            'sign' => '定',
        ],
        self::CLASS_NAME_TYPE_GUIDE_LOG => [
            'label' => '指导日志',
            'sign' => '指',
        ],
        self::CLASS_NAME_TYPE_SHIXI => [
            'label' => '专业实习、毕业实习数据提交',
            'sign' => '实',
        ],
        self::CLASS_NAME_TYPE_PINGSHEN => [
            'label' => '学士学位评审',
            'sign' => '评',
        ],
        self::CLASS_NAME_TYPE_DOC_LAST => [
            'label' => '最终稿',
            'sign' => '终',
        ],
        self::CLASS_NAME_TYPE_DABIAN => [
            'label' => '答辩',
            'sign' => '答',
        ],
    ];


}